`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    12:01:16 12/02/2020 
// Design Name: 
// Module Name:    forword 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module Forward(
    input [4:0] newAddress,
    input [31:0] newData,
	 input [2:0] Tnew,
    input [4:0] useAddress,
	 input [31:0] thisData,
    output [31:0] realData
    );
	 
	assign realData = (newAddress == useAddress 
								&& newAddress != 0 
								&& Tnew == 0) ? 
							newData : 
							thisData;

endmodule
